
import java.util.Arrays;
public class demo29 {

    public static void main(String[] args) {
        int[] a = {11,26,98,12,11,98,56,426};
        for (int i = 1; i < a.length; i++) {
            for (int j = i + 1; j < a.length; j++) {
                if (a[j] == a[i]) {
                    a[j] = 0;
                }
            }
        }
        System.out.println(Arrays.toString(a));
    }

}

